package com.itheima.pojo;

import java.util.Date;

public class User2 {
    private Integer userId;
    private String username;
    private String email;
    private Date registrationDate;
    private UserProfile profile; // 关键：一对一关联

    @Override
    public String toString() {
        return "User{"+
                "id=" + userId + ", username='" + username +'\''+ ", email='"+ email +'\''+ ", registrationDate='"+registrationDate +'\''+ ", profile='" + profile +'\'' + '}';

    }
    // Getters and Setters...
}
